﻿using famails.bus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace famails.BackEnd
{
    public partial class UnReciveMail : System.Web.UI.Page
    {
        static int id = 0;
        static string email = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["id"] != null)
                {
                    id = int.Parse(Request.Params["id"].ToString());
                   // email = Request.Params["email"].ToString();
                }
            }
        }
        protected void btnOk_Click(object sender, EventArgs e)
        {
            CustomerBUS ctBUS = new CustomerBUS();
            ctBUS.SendMail_UpdateUnRecieve(id);
            Label1.Text = "Gỡ bỏ thành công!";
            btnCancel.Visible = btnOk.Visible = false;
        }
    }
}